#!/bin/bash
# $Id: make-kernel-links.sh 332 2009-02-07 14:33:42Z ant_code $


kmoddir="/medium/kernel-modules/lib/modules/`uname -r`/"

if [ -d $kmoddir ]; then
	mkdir -p /lib/modules 
	rm -f /lib/modules/"`uname -r`"
	ln -bs "$kmoddir" /lib/modules/"`uname -r`" || exit 1
else
	echo " ERROR: Did not found a kernel modules directory on media `cat /var/tmp/cdrom_device`, exiting ..."
	exit 1
fi
